package com.example.seata.order.feign;

import com.example.seata.order.entity.AccountTbl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName : AccountFeignClient
 * @Description : feign客户端
 * @Author : tianshuo
 * @Date: 2021-05-15 21:26
 */
//@RequestMapping("/account")
@FeignClient(value = "seata-account")
public interface AccountFeignClient {

    @PostMapping("/account/dedit")
    String debit(@RequestBody AccountTbl accountTbl);
}

